package com.example.demo.controller;

import com.example.demo.util.R;
import com.example.demo.util.ResultUtil;
import com.example.demo.util.word.DocUtil;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * fileName:FileController
 * description: 文件类型控制层
 * author: LJV
 * createTime:2022/4/22 11:07
 * version:1.0.0
 */
@Api(tags = "(File)")
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("file")
public class FileController {

    /**
     * 读取word
     * @return
     */
    @GetMapping("readWord")
    public String readWord(){
        String word = DocUtil.readWord("");
        return word;
    }

}
